package com.alexander.test111;

import android.os.Bundle;

import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;

import com.alexander.annotation.ARouter;
import com.alexander.annotation_api.RouterManager;

/**
 * author : cjw
 * date : 2022/2/8
 * description :
 */
@ARouter(path = "/app/firstActivity")
public class FirstActivity extends AppCompatActivity {

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_first);
        findViewById(R.id.button).setOnClickListener(v -> {
            RouterManager.getInstance()
                    .navigation(FirstActivity.this, "/app/secondActivity");
        });
    }
}
